package Server.map;


public class Meat extends Food {

	public Meat(int energy, int maxEnergy){
		super(energy, maxEnergy);
	}
	public Meat(Meat m){
		super(m);
	}
	@Override
	public boolean isMeat() {
		return true;
	}

	@Override
	public void update() throws MeatExhaustedException {
		if (this.energy <= 0){
			throw new MeatExhaustedException();
		}
		
		this.energy -= this.energy / 10;
	}

}
